package com.hxzy.service.impl;

import com.hxzy.dao.ActorDao;
import com.hxzy.dao.impl.ActorDaoImpl;
import com.hxzy.service.ActorService;
import entity.Actor;

import java.util.Optional;

public class ActorServiceImpl  implements ActorService {


    ActorDao actorDao=new ActorDaoImpl();

    @Override
    public int insert(Actor actor) {
        return actorDao.insert(actor);
    }

    @Override
    public int updateByPrimaryKey(Actor actor) {
        return actorDao.updateByPrimaryKey(actor);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return actorDao.deleteByPrimaryKey(id);
    }

    @Override
    public Optional<Actor> selectByPrimaryKey(Integer id) {
        return actorDao.selectByPrimaryKey(id);
    }
}
